﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Project_Vital
{
    public class EmployeeDao
    {

        const string connectionString = "Server=NEXTGEN-TECH01;Database=Vital;Trusted_Connection=True";



        private void CreateEmployee (Employee employee)
        {
       //     vord_vital_order newOrder = this.TranformOrder(order);
            vemp_vital_employee newEmployee = this.TranformEmployee(employee);
            ProjectVitalDataContext dateContext = new ProjectVitalDataContext(connectionString);
            dateContext.vemp_vital_employees.InsertOnSubmit(newEmployee);
            dateContext.SubmitChanges();
        }

         private Employee TransformLinqToBusinessOrder(vemp_vital_employee employee)
        {
          //  Order dbOrder = new Order();
             Employee dbEmployee = new Employee();


            /**
            dbCustomer._vcus_customer_id = customer.vcus_customer_id;
            **/

            return dbEmployee;
        }

        private vemp_vital_employee TranformEmployee(Employee employee)
        {
        //    vord_vital_order dbOrder = new vord_vital_order();
            vemp_vital_employee dbEmployee = new vemp_vital_employee();


            
          //  dbCustomer.vcus_first_name = customer._vcus_first_name;



           return dbEmployee;
        }
    }
}

